// Employee.java (模型)
package com.trade.data.controller;

import com.trade.data.dto.EmployeeDto;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Arrays;
import java.util.List;


@RestController
public class EmployeeController {

    @GetMapping("/employees")
    public List<EmployeeDto> getEmployees() {
        return Arrays.asList(
                new EmployeeDto(1L, "John Doe", "Developer"),
                new EmployeeDto(2L, "Jane Smith", "Manager"),
                new EmployeeDto(3L, "Samuel Green", "Designer")
        );
    }
}

